package com.taoyige.bean;

import java.io.InputStream;
import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.taoyige.common.JacksonJsonUtil;

/**
 * 订单集合实体类
 * @author peter
 * @version 1.0
 * @created 2014-11-13
 */
@JsonIgnoreProperties(ignoreUnknown=true)
public class OrderList extends Entity{
	
	private List<Order> list;
	
	private Integer count;
	
	public List<Order> getList() {
		return list;
	}


	public void setList(List<Order> list) {
		this.list = list;
	}



	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}


	public static OrderList  parse(InputStream ins) throws Exception {
		OrderList orderList = (OrderList) JacksonJsonUtil.jsonToBean(ins, OrderList.class);
		return orderList;
	}
	
}
